package com.jiuling.qiniu.spring.config;

import com.jiuling.qiniu.config.QiNiuConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author 紫灵
 * @date 2023年05月24日 14时56分32秒
 */
@Component
@Configuration
public class QiNiuBasnConfig {

    @Bean
    @ConfigurationProperties(prefix = "jiu-ling.qiniu")
    public QiNiuConfig qiNiuConfig(){
        return new QiNiuConfig();
    }

}
